<template>
  <div>
    <el-form ref="dataForm" :model="dataForm" :rules="dataRule" label-width="80px">
      {{range $i, $v := .Fields}}<el-row>
        <el-col>
          <el-form-item size="mini" label="{{$v.Comment}}" prop="{{$v.GoName}}">
            <el-input v-model="dataForm.{{$v.GoName}}" maxlength="25" show-word-limit placeholder="请输入{{$v.Comment}}" />
          </el-form-item>
        </el-col>
      </el-row>{{end}}
    </el-form>
  </div>
</template>
<script>
  import
  export default {
    data() {
      return {
        dataForm: {
          {{range $i, $v := .Fields}} {{$v.GoName}}: '',
          {{end}}
        },
        dataRule: {
          {{range $i, $v := .Fields}} {{$v.GoName}}: [{}],
          {{end}}
        }
      }
    },
    mounted() {

    },
    methods: {
      init() {

      }
    }
  }
</script>
